package lifemain;

public class life {

        /**
         * @param args
         */
        public static void main(String[] args) {

                int n = 20;
                int m = 10;
                matrix mat = new matrix(n,m);
                mat.setPole(1,1);
                mat.setPole(1,3);
                mat.setPole(2,2);
                mat.setPole(2,3);
                mat.setPole(3,2);
                mat.Mprint();
                
                while (mat.clearM())
                {
                	nextStep stt =new nextStep(mat);
                	mat.Mprint();
                	try
                	{
                		Thread.sleep(400);
                	}
                	catch(InterruptedException e)
                	{
                		System.out.print("Ошибка");
                	}
                }
           
        }

}

